James Beninghaus, Cameron Birse, Tim Enwall, John Harvey, Dennis Hescox, Craig Prouse
===============
Audio CD: An MPW Tool that allows you to start, stop, pause, and continue audio CD tracks.
BusErrorTest: Shows how to replace the 68K bus error vector—very useful for testing.
ChangeTextStyleRec: A utility routine that can simplify the process of modifying a TextStyle record to change a font, style, or type size.
ClickSound: A simple sound producer.
ClutWind: Displays a window that shows the colors in the color table associated with the device the window is on top of.
DisableEject: Shows how to stop a floppy disk from being ejected. We’ve provided this snippet because many of you have asked how to do it, but you should know as well as we do that it has no chance of being compatible with future system software.
GetFInfo, GetVInfo: MPW Tools that simply parse command-line options and print the value of the parameter blocks returned from Toolbox calls.
Heap Purge dcmd: Simulates TMON’s heap purge in MacsBug.
Icon Display: A Think C project that reads pixMaps from an icon family (icsX) that are actually stored as pure pixel data (not a PixMap struct or a color icon), allocates an appropriate off-screen world, and then copies the pixels into the off-screen pixMap with BlockMove. This creates a pixMap you can use with CopyBits. This code is found in the bullwindow.c file. There’s some other code that demonstrates how to keep the pixMap matched up to the depth of the current device.
KeyMapTest: Shows how to interpret the results of GetKeys.
Marquee: Demonstrates marching ants (the scrolling dashed lines used in a selection rectangle).
MDEF.Sample: An MDEF written in Pascal that supports rez MENU templates and allows you to request the use of the Shift-Command symbol (made famous by our friends to the North and perhaps MacroMaker) for a menu item instead of the traditional Command-key symbol. The MDEF also erases and redraws items rather than inverting them; this is necessary for a hierarchical menu.
OpenWindow: Shows basic initialization calls and how to open a window for drawing.
PPC Esoterica: This used to be some not-so-great samples of PPC stuff: now it's only a text file telling you where to find good samples.
Process: An MPW tool that prints information about all running processes under System 7.0.
ReadLN.c: A routine that causes the FSRead call to behave like a Pascal Readln.
ReKeyTrans: Shows how to use the Script Manager and KCHRs to call KeyTrans.
TCP: Includes two MPW Tools, TCPSend and TCPReceive, that demonstrate a very simple establishment of a TCP connection and sending a text string over that connection. An API library of all the MacCTB driver and DNR calls is also included.
TickAnimate: Sample of how to use ticks to synchronize drawing to the screen.
TimerTst: This hardware-dependent snippet shows how to use the VIA timers (for the few times when the Time Manager is not appropriate).
ZoomWindow: Demonstrates how to properly zoom a window. It gives attractive results with most WDEFs because it uses the window’s structure region rather than just its portRect.